package com.vip.jwt.config;

import lombok.Getter;
import lombok.Setter;
import org.apache.shiro.authc.AuthenticationToken;

@Getter
@Setter
public class JwtToken implements AuthenticationToken {

    /**
     * Token字符串
     */
    private String token;

    public JwtToken(String token){
        this.token = token;
    }

    @Override //用户名
    public Object getPrincipal() {
        return token;
    }

    @Override //密码
    public Object getCredentials() {
        return token;
    }

}
